import fetch from 'common/src/utils/fetch';

/**
 * 查询学生课表（首页使用）
 */
function getStudentClassSchedule(calendarId, week) {
    return fetch({
        url: `/api/electionservice/reportManagement/getStudentTimetab?calendarId=${calendarId}&week=${week}`,
        method: 'get'
    });
}

/**
 * 查询教师课表（首页使用）
 */
function getTeacherClassSchedule(calendarId, week) {
    return fetch({
        url: `/api/electionservice/reportManagement/getTeacherTimetable?calendarId=${calendarId}&week=${week}`,
        method: 'get'
    });
}

export { getStudentClassSchedule, getTeacherClassSchedule };
